/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
 * Description: utrace infos
 * Author: wuhaoyu
 * Create: 2025-02-10
 */

#ifndef HCCL_INC_ADAPTER_TRACE_H
#define HCCL_INC_ADAPTER_TRACE_H

#include <hccl/hccl_types.h>
#include <hccl/base.h>
#include "atrace_types.h"

HcclResult hrtOpenTrace();
void hrtTraceDestroy(TraHandle handle);
HcclResult hrtTraceSubmit(TraHandle handle, const void *buffer, u32 bufSize);
HcclResult hrtTraceCreateWithAttr(const char *objName, TraHandle &handle);
HcclResult hrtTraceSetGlobalAttr(const TraceGlobalAttr *attr);
HcclResult hrtTraceSave(TracerType tracerType, bool syncFlag);
#endif